package com.sykj.manage.service.imp;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sykj.manage.dao.SysDeptDao;
import com.sykj.manage.service.SysDeptService;
import com.sykj.manage.model.SysDept;

/**
 * 
 * @author 高志远
 *2018年9月13日下午4:12:26
 *类描述：组织机构[sys_dept业务逻辑
 */
@Service
public class SysDeptServiceImpl implements SysDeptService{
	@Autowired
	SysDeptDao sysdeptdao;

	@Override
	public List<SysDept> findDepts(SysDept sysDept) {
		// TODO Auto-generated method stub
		return sysdeptdao.findDepts(sysDept);
	}

	@Override
	public int delDepts(Object[] dept_id) {
		// TODO Auto-generated method stub
		return sysdeptdao.delDepts(dept_id);
	}

	@Override
	public int addDept(SysDept sysDept) {
		// TODO Auto-generated method stub
		return sysdeptdao.addDept(sysDept);
	}

	

	@Override
	public int updDept(SysDept sysDept) {
		// TODO Auto-generated method stub
		return sysdeptdao.updDept(sysDept);
	}

	@Override
	public SysDept findDeptById(String dept_id) {
		// TODO Auto-generated method stub
		return sysdeptdao.findDeptById(dept_id);
	}

}
